const home = {
  state: {
    userInfo: {
      userName: ''
    }
  },
  mutations: {
    setUserInfo (state, userInfo) {
      state.userInfo = userInfo
    }
  },
  actions: {
    setUserInfo({commit}, userInfo) {
      commit('setUserInfo', userInfo)
    }
  },
  getters: {
    userInfo: state => state.userInfo
  }
}

export default home